package com.xwt.pattern.bridge;

import com.xwt.pattern.utils.Utils;

/**
 * Author:  Steven Xiao
 * Description:我要关心我自己的公司了
 * Date:  2016/3/22
 * Time:  11:04
 */
public class NewClient {
    public static void main(String []args){
        House house =new House();
        Utils.println("--------------房地产公司是这个样子运行的-------------");
        NewHouseCorp newHouseCorp = new NewHouseCorp(house);
        newHouseCorp.makeMoney();
        Utils.println("\n");

        Utils.println("-------------山寨公司是这样子运行的-----------------");
//        ShanZhaiCorp shanZhaiCorp = new ShanZhaiCorp(new Clothes());
        ShanZhaiCorp shanZhaiCorp = new ShanZhaiCorp(new IPod());
        shanZhaiCorp.makeMoney();
    }

}
